package com.dao;

import com.dao.MemberbuyrecordDao;
import com.entity.Memberbuyrecord;
import com.mapper.MemberbuyrecordMapper;
import com.page.PageInfo;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Repository
public interface MemberbuyrecordDao {

     public List<Memberbuyrecord> getAll();

    /**
     * 普通分页查询
     * @param pageInfo
     * @return
     */
    public List<Memberbuyrecord> getMemberbuyrecordsByPage(PageInfo pageInfo);



    /**
     *
     * @param mbno
     * @return
     */
    public Memberbuyrecord getMemberbuyrecordByMno(Integer mbno) throws Exception;
    /**
     *
     * @param memberbuyrecord
     */
    public Integer add(Memberbuyrecord memberbuyrecord)throws Exception;
    /**
     *  根据主键修改信息
     * @param memberbuyrecord
     */
    public Integer update(Memberbuyrecord memberbuyrecord)throws Exception;
}
